﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ef.SQLServerProvider
{
    public class CategoryRepository : DataBase.DataBase, DataProvider.ICategoryRepository
    {
        #region ICategoryRepository 成员

        public void Insert(Entity.Category entity)
        {
            base.Insert<Entity.Category>(entity);
        }

        public void update(Entity.Category entity)
        {
            base.Update<Entity.Category>(entity);
        }

        public void delete(Entity.Category entity)
        {
            base.Delete<Entity.Category>(entity);
        }

        public IQueryable<Entity.Category> GetModel()
        {
            return base.GetModel<Entity.Category>();
        }

        #endregion
    }
}
